//
//  UIControl+Extension.h
//  TableDemo
//
//  Created by jutuo on 2020/3/28.
//  Copyright © 2020 jutuo. All rights reserved.
//


#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@interface UIControl (Extension)
/**
 *删除所有的target
 */
- (void)removeAllTargets;

- (void)setTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents;

- (void)addBlockForControlEvents:(UIControlEvents)controlEvents block:(void (^)(id sender))block;

- (void)setBlockForControlEvents:(UIControlEvents)controlEvents
                           block:(void (^)(id sender))block ;

- (void)removeAllBlocksForControlEvents:(UIControlEvents)controlEvents;
@end

NS_ASSUME_NONNULL_END
